.class public Lcom/hyphenate/chat/EMNormalFileMessageBody;
.super Lcom/hyphenate/chat/EMFileMessageBody;

# interfaces
.implements Landroid/os/Parcelable;


# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    new-instance v0, Lcom/hyphenate/chat/EMNormalFileMessageBody$1;

    invoke-direct {v0}, Lcom/hyphenate/chat/EMNormalFileMessageBody$1;-><init>()V

    sput-object v0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->CREATOR:Landroid/os/Parcelable$Creator;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    const-string/jumbo v0, ""

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMFileMessageBody;-><init>(Ljava/lang/String;)V

    return-void
.end method

.method private constructor <init>(Landroid/os/Parcel;)V
    .locals 4

    const-string/jumbo v0, ""

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMFileMessageBody;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setDisplayName(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setLocalPath(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setRemotePath(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {p1}, Landroid/os/Parcel;->readLong()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setFileLength(J)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setSecretKey(Ljava/lang/String;)V

    return-void
.end method

.method synthetic constructor <init>(Landroid/os/Parcel;Lcom/hyphenate/chat/EMNormalFileMessageBody$1;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/hyphenate/chat/EMNormalFileMessageBody;-><init>(Landroid/os/Parcel;)V

    return-void
.end method

.method constructor <init>(Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/hyphenate/chat/EMFileMessageBody;-><init>(Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;)V

    return-void
.end method

.method public constructor <init>(Ljava/io/File;)V
    .locals 1

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMFileMessageBody;-><init>(Ljava/lang/String;)V

    return-void
.end method

.method constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/hyphenate/chat/EMFileMessageBody;-><init>(Ljava/lang/String;)V

    invoke-super {p0, p2}, Lcom/hyphenate/chat/EMFileMessageBody;->setRemoteUrl(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public describeContents()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public getFileSize()J
    .locals 2

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->fileLength()J

    move-result-wide v0

    return-wide v0
.end method

.method public toString()Ljava/lang/String;
    .locals 4

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "normal file:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->displayName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ",localUrl:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ",remoteUrl:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->getRemoteUrl()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ",file size:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->fileLength()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public writeToParcel(Landroid/os/Parcel;I)V
    .locals 2

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->displayName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->getRemoteUrl()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->fileLength()J

    move-result-wide v0

    invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->writeLong(J)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMNormalFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->getSecret()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    return-void
.end method
